package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.CusorderData2Mapper;
import com.ruoyi.system.domain.CusorderData2;
import com.ruoyi.system.service.ICusorderData2Service;

/**
 * 客户订单处理Service业务层处理
 * 
 * @author cyx
 * @date 2024-05-09
 */
@Service
public class CusorderData2ServiceImpl implements ICusorderData2Service 
{
    @Autowired
    private CusorderData2Mapper cusorderData2Mapper;

    /**
     * 查询客户订单处理
     * 
     * @param data2Id 客户订单处理主键
     * @return 客户订单处理
     */
    @Override
    public CusorderData2 selectCusorderData2ByData2Id(Long data2Id)
    {
        return cusorderData2Mapper.selectCusorderData2ByData2Id(data2Id);
    }

    /**
     * 查询客户订单处理列表
     * 
     * @param cusorderData2 客户订单处理
     * @return 客户订单处理
     */
    @Override
    public List<CusorderData2> selectCusorderData2List(CusorderData2 cusorderData2)
    {
        return cusorderData2Mapper.selectCusorderData2List(cusorderData2);
    }

    /**
     * 新增客户订单处理
     * 
     * @param cusorderData2 客户订单处理
     * @return 结果
     */
    @Override
    public int insertCusorderData2(CusorderData2 cusorderData2)
    {
        return cusorderData2Mapper.insertCusorderData2(cusorderData2);
    }

    /**
     * 修改客户订单处理
     * 
     * @param cusorderData2 客户订单处理
     * @return 结果
     */
    @Override
    public int updateCusorderData2(CusorderData2 cusorderData2)
    {
        return cusorderData2Mapper.updateCusorderData2(cusorderData2);
    }

    /**
     * 批量删除客户订单处理
     * 
     * @param data2Ids 需要删除的客户订单处理主键
     * @return 结果
     */
    @Override
    public int deleteCusorderData2ByData2Ids(Long[] data2Ids)
    {
        return cusorderData2Mapper.deleteCusorderData2ByData2Ids(data2Ids);
    }

    /**
     * 删除客户订单处理信息
     * 
     * @param data2Id 客户订单处理主键
     * @return 结果
     */
    @Override
    public int deleteCusorderData2ByData2Id(Long data2Id)
    {
        return cusorderData2Mapper.deleteCusorderData2ByData2Id(data2Id);
    }
}
